package com.bdmc.device.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 血糖数据视图对象 dev_glucose_data
 *
 * @author bdmc
 * @date 2023-07-31
 */
@Data
@ExcelIgnoreUnannotated
public class DevGlucoseDataVo {

	private static final long serialVersionUID = 1L;

    /**
     * 
     */
	@ExcelProperty(value = "")
	private Long glucoseId;

    /**
     * 设备ID，必须
     */
	@ExcelProperty(value = "设备ID，必须")
	private String imei;

    /**
     * 血糖，例如 9.7
     */
	@ExcelProperty(value = "血糖，例如 9.7")
	private Long bloodGlu;

    /**
     * 状态，可选
     */
	@ExcelProperty(value = "状态，可选")
	private String bgState;

    /**
     * 测量时间，可选
     */
	@ExcelProperty(value = "测量时间，可选")
	private String testTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime dataTime;

}
